<template>
	<view>
		<u-sticky bgColor="#fff">
			<view class="tabs">
				<u-tabs
					:list="list1"
					lineColor="#4BC264"
					@change="change"
					:current="current"
					:activeStyle="{
						color: '#1C274C',
						fontWeight: 'bold',
						transform: 'scale(1.02)'
					}"
					:inactiveStyle="{
						color: '#A4A9B7',
						transform: 'scale(1)'
					}"
					itemStyle="padding-left: 30px; padding-right: 30px; height: 42px;"
				></u-tabs>
			</view>
		</u-sticky>
		
		<view class="each" v-for="(item,index) in 3">
			<view class="each-l">
				<view class="name">老板账户赠送给15796998525</view>
				<view class="time">2022.07.18 10:00</view>
			</view>
			<view class="each-r">
				200.00
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			list1: [
				{
					name: '余额主动赠送'
				},
				{
					name: '优惠券主动赠送'
				}
			],
			current: 0
		};
	},
	methods: {}
};
</script>

<style lang="scss">
page {
	background-color: #f7f8fa;
}
.tabs {
	padding: 0 32rpx;
	display: flex;
	justify-content: center;
}

.each {
	width: 622rpx;
	background: #ffffff;
	border-radius: 20rpx 20rpx 20rpx 20rpx;
	padding: 32rpx;
	margin: auto;
	margin-top: 24rpx;
	display: flex;
	justify-content: space-between;
	align-items: center;
	.each-l {
		.name {
			font-weight: bold;
			font-size: 28rpx;
			color: #1C274C;
		}
		.time {
			font-weight: 500;
			font-size: 22rpx;
			color: #A4A9B7;
			margin-top: 16rpx;
		}
	}
	.each-r {
		font-weight: bold;
		font-size: 36rpx;
		color: #4BC264;
	}
}
</style>
